// server/middleware/db.ts

import { defineEventHandler } from "h3";
import db from "../utils/lokijs-db-server";

export default defineEventHandler((event) => {
  event.context.db = db;
});
